#include <QStringList>
#include <QWidget>
#include <QDialog>
#include <QString>
#include <QFile>
#include <QTextStream>
#include <QCheckBox>
#include <QPushButton>
#include <QCloseEvent>
#include <QHBoxLayout>
#include <QLabel>
#include <QVBoxLayout>
#include <QFont>
#include <QTextEdit>

class QAdwiceDialog:public QDialog
{
	Q_OBJECT

	public:
		QAdwiceDialog(QPixmap icon,QString filename,QWidget * parent);
		bool isAsked();
		
	public slots:
		void s_next();

	private:
		QLabel * l_pix;
		QTextEdit * l_adwice;
		QLabel * l_title;
		QPushButton * pb_next;
		QPushButton * pb_close;
		QCheckBox * cb_showAdwice;
		
		QStringList adwice_list;
		QString filename;
		unsigned int currentid;

	protected:
		void closeEvent(QCloseEvent * event);
};
